﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace _13_webAPI.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class 耗时很慢的服务注册Controller : ControllerBase
    {
        //private readonly jiSuanQi jsq;
        //public 耗时很慢的服务注册Controller(jiSuanQi jsq) {
        //    this.jsq = jsq;
        //}

        [HttpGet]
        public int Test1([FromServices]jiSuanQi jsqServer)
        {
            return jsqServer.Add(3,8);
        }
        [HttpGet]
        public int Test2([FromServices] jiSuanQi jsqServer,int no1)
        {
            return jsqServer.Add(no1, 8);
        }
    }
}
